﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EC2011_hk1_BT6_1041326_1041337_1041373_1041448.DTO
{
    public class DepartmentDTO
    {
        #region Attributes and Properties
        private int _departmentID;
        private String _name;
        private String _urlPhoto;
        private String _urlHomePage;
        private String _showControl;

        public int DepartmentID
        {
            get { return _departmentID; }
            set { _departmentID = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string UrlPhoto
        {
            get { return _urlPhoto; }
            set { _urlPhoto = value; }
        }

        public string UrlHomePage
        {
            get { return _urlHomePage; }
            set { _urlHomePage = value; }
        }

        public string ShowControl
        {
            get { return _showControl; }
            set { _showControl = value; }
        }
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public DepartmentDTO()
        {
            _departmentID = -1;
            _name = null;
            _urlPhoto = null;
            _urlHomePage = null;
            _showControl = null;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public DepartmentDTO(int departmentID, string name, string urlPhoto, string urlHomePage, string showControl)
        {
            _departmentID = departmentID;
            _name = name;
            _urlPhoto = urlPhoto;
            _urlHomePage = urlHomePage;
            _showControl = showControl;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public DepartmentDTO(DepartmentDTO dept)
        {
            _departmentID = dept.DepartmentID;
            _name = dept.Name;
            _urlPhoto = dept.UrlPhoto;
            _urlHomePage = dept.UrlHomePage;
            _showControl = dept.ShowControl;
        }
        #endregion
    }
}
